package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    /**
     *
     * @param ids  素材ID
     * @param newsId   文章ID
     * @param type 类型
     */
    void saveRelation(@Param("ids") List<Integer> ids, @Param("newsId") Integer newsId, @Param("type") short type);
}
